import request from '@/utils/request'

// 查询列表
export function GetListAPI(params) {
    return request({
        url: '/equipment/patrol-item/list',
        method: 'GET',
        params
    })
}

// 新增
export function AddDataAPI(data) {
    return request({
        url: '/equipment/patrol-item/add',
        method: 'POST',
        data
    })
}

// 修改
export function EditDataAPI(data) {
    return request({
        url: '/equipment/patrol-item/updatePatrolItem',
        method: 'PUT',
        data
    })
}

// 查询单个
export function GetDeiltsAPI(params) {
    return request({
        url: '/equipment/patrol-item/queryPatrolItem/' + params,
        method: 'GET'
    })
}

// 删除单个
export function DelDataAPI(params) {
    return request({
        url: '/equipment/patrol-item/deletePatrolItem/' + params,
        method: 'DELETE'
    })
}